package com.yuan.springcloud.api;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;

/**
 * @author YouYuan
 * @version 1.0
 * @date 2020/4/1 10:55
 */
@SpringBootApplication
//开启ZUll网关
@EnableZuulProxy
//开启Eureka服务注册与发现
@EnableDiscoveryClient
public class ApiApplication {

    public static void main(String[] args) {
        SpringApplication.run(ApiApplication.class, args);
    }
}
